package com.deductive.domain.wq;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 战时救治机构救治措施统计表
 * @TableName disposition_wq_zsjjjgsytj
 */
@TableName(value ="disposition_wq_zsjjjgsytj")
@Data
public class DispositionWqZsjjjgsytj implements Serializable {
    /**
     * id
     */
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;

    /**
     * 伤员类别
     */
    @TableField(value = "injured_person_type")
    private String injuredPersonType;

    /**
     * 原有人数
     */
    @TableField(value = "original_people_number")
    private Integer originalPeopleNumber;

    /**
     * 接收人数
     */
    @TableField(value = "receive_people_number")
    private Integer receivePeopleNumber;

    /**
     * 出院人数
     */
    @TableField(value = "leave_hospital_people_number")
    private Integer leaveHospitalPeopleNumber;

    /**
     * 归队人数
     */
    @TableField(value = "gd_people_number")
    private Integer gdPeopleNumber;

    /**
     * 死亡人数
     */
    @TableField(value = "death_people_number")
    private Integer deathPeopleNumber;

    /**
     * 后送人数
     */
    @TableField(value = "hs_people_number")
    private Integer hsPeopleNumber;

    /**
     * 留治人数
     */
    @TableField(value = "lz_people_number")
    private Integer lzPeopleNumber;

    /**
     * 待后送人数
     */
    @TableField(value = "dhs_people_number")
    private Integer dhsPeopleNumber;

    /**
     * 统计时间
     */
    @TableField(value = "statistical_time")
    private Date statisticalTime;

    /**
     * 统计人员
     */
    @TableField(value = "statistical_personnel")
    private String statisticalPersonnel;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DispositionWqZsjjjgsytj other = (DispositionWqZsjjjgsytj) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getInjuredPersonType() == null ? other.getInjuredPersonType() == null : this.getInjuredPersonType().equals(other.getInjuredPersonType()))
            && (this.getOriginalPeopleNumber() == null ? other.getOriginalPeopleNumber() == null : this.getOriginalPeopleNumber().equals(other.getOriginalPeopleNumber()))
            && (this.getReceivePeopleNumber() == null ? other.getReceivePeopleNumber() == null : this.getReceivePeopleNumber().equals(other.getReceivePeopleNumber()))
            && (this.getLeaveHospitalPeopleNumber() == null ? other.getLeaveHospitalPeopleNumber() == null : this.getLeaveHospitalPeopleNumber().equals(other.getLeaveHospitalPeopleNumber()))
            && (this.getGdPeopleNumber() == null ? other.getGdPeopleNumber() == null : this.getGdPeopleNumber().equals(other.getGdPeopleNumber()))
            && (this.getDeathPeopleNumber() == null ? other.getDeathPeopleNumber() == null : this.getDeathPeopleNumber().equals(other.getDeathPeopleNumber()))
            && (this.getHsPeopleNumber() == null ? other.getHsPeopleNumber() == null : this.getHsPeopleNumber().equals(other.getHsPeopleNumber()))
            && (this.getLzPeopleNumber() == null ? other.getLzPeopleNumber() == null : this.getLzPeopleNumber().equals(other.getLzPeopleNumber()))
            && (this.getDhsPeopleNumber() == null ? other.getDhsPeopleNumber() == null : this.getDhsPeopleNumber().equals(other.getDhsPeopleNumber()))
            && (this.getStatisticalTime() == null ? other.getStatisticalTime() == null : this.getStatisticalTime().equals(other.getStatisticalTime()))
            && (this.getStatisticalPersonnel() == null ? other.getStatisticalPersonnel() == null : this.getStatisticalPersonnel().equals(other.getStatisticalPersonnel()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getInjuredPersonType() == null) ? 0 : getInjuredPersonType().hashCode());
        result = prime * result + ((getOriginalPeopleNumber() == null) ? 0 : getOriginalPeopleNumber().hashCode());
        result = prime * result + ((getReceivePeopleNumber() == null) ? 0 : getReceivePeopleNumber().hashCode());
        result = prime * result + ((getLeaveHospitalPeopleNumber() == null) ? 0 : getLeaveHospitalPeopleNumber().hashCode());
        result = prime * result + ((getGdPeopleNumber() == null) ? 0 : getGdPeopleNumber().hashCode());
        result = prime * result + ((getDeathPeopleNumber() == null) ? 0 : getDeathPeopleNumber().hashCode());
        result = prime * result + ((getHsPeopleNumber() == null) ? 0 : getHsPeopleNumber().hashCode());
        result = prime * result + ((getLzPeopleNumber() == null) ? 0 : getLzPeopleNumber().hashCode());
        result = prime * result + ((getDhsPeopleNumber() == null) ? 0 : getDhsPeopleNumber().hashCode());
        result = prime * result + ((getStatisticalTime() == null) ? 0 : getStatisticalTime().hashCode());
        result = prime * result + ((getStatisticalPersonnel() == null) ? 0 : getStatisticalPersonnel().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", injuredPersonType=").append(injuredPersonType);
        sb.append(", originalPeopleNumber=").append(originalPeopleNumber);
        sb.append(", receivePeopleNumber=").append(receivePeopleNumber);
        sb.append(", leaveHospitalPeopleNumber=").append(leaveHospitalPeopleNumber);
        sb.append(", gdPeopleNumber=").append(gdPeopleNumber);
        sb.append(", deathPeopleNumber=").append(deathPeopleNumber);
        sb.append(", hsPeopleNumber=").append(hsPeopleNumber);
        sb.append(", lzPeopleNumber=").append(lzPeopleNumber);
        sb.append(", dhsPeopleNumber=").append(dhsPeopleNumber);
        sb.append(", statisticalTime=").append(statisticalTime);
        sb.append(", statisticalPersonnel=").append(statisticalPersonnel);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}